load() vs. read()

Hello,

I was wondering what the difference is when you use the below functions to open the current version of a Module and having it displayed on the screen? I understand the load() is used for baselines but what is the difference if any(performance) between the two functions when opening the current version of a Module? Thank you.

Module load(ModuleVersion modver, bool display)
Module read(string name[,bool disp, bool loadStandardView])

-Jim
SystemAdmin - Fri May 11 06:51:09 EDT 2012

Re: load() vs. read()
grasswistle - Fri Nov 01 13:51:18 EDT 2013

This is my exact question!  I need an answer to this!  

Thanks in advance,

Grasswistle

Re: load() vs. read()
llandale - Fri Nov 01 14:30:55 EDT 2013

grasswistle - Fri Nov 01 13:51:18 EDT 2013

This is my exact question!  I need an answer to this!  

Thanks in advance,

Grasswistle

  • "read" (string Name) only gets the current version of the module.
  • "load" (ModuleVersion) lets you open the baseline version of the module associated with some versioned link.
  • "load" (Baseline, Module) which lets you open a baseline of a module directly.

So "load" when following links or browsing Baselines; "read" when dealing with current version of a module.

-Louie

Re: load() vs. read()
grasswistle - Fri Nov 01 15:49:41 EDT 2013

llandale - Fri Nov 01 14:30:55 EDT 2013

  • "read" (string Name) only gets the current version of the module.
  • "load" (ModuleVersion) lets you open the baseline version of the module associated with some versioned link.
  • "load" (Baseline, Module) which lets you open a baseline of a module directly.

So "load" when following links or browsing Baselines; "read" when dealing with current version of a module.

-Louie

So, just to be clear, it is not possible to follow links and get the current version of a module with load?

Thanks,

Grasswistle

P.S.  By the way Louie, I've been lurking this forum for a while and I must say that the code fragments you have posted have made a world of difference in my work.  I have links to your profile (as credits) all over the place and people keep asking who this God, Louie, is.  Keep up the good work!

Re: load() vs. read()
llandale - Mon Nov 04 10:17:08 EST 2013

grasswistle - Fri Nov 01 15:49:41 EDT 2013

So, just to be clear, it is not possible to follow links and get the current version of a module with load?

Thanks,

Grasswistle

P.S.  By the way Louie, I've been lurking this forum for a while and I must say that the code fragments you have posted have made a world of difference in my work.  I have links to your profile (as credits) all over the place and people keep asking who this God, Louie, is.  Keep up the good work!

No, you can get to the current version following links using "load"; but only if the versioned link (and therefore the "ModuleVersion") is actually to the current version of the module.  If you know you want the current version, use "read".